import {defineStore} from "pinia";
import {ref,computed}   from "vue";
export const userMapData = defineStore("userMapData", ()=>{
    //数据
    const elderlyAgeList = ref([{
        name: "50到55之间",
        value: 50,
    },{
        name: "55到60之间",
        value: 150,
    },{
        name: "60到65之间",
        value: 70,
    },{
        name: "65到70之间",
        value: 30,
    },{
        name: "70到75之间",
        value: 10,
    },{
        name: "75到80之间",
        value: 2,
    },{
        name: "80到85之间",
        value: 4,
    }
    ])

    //getter
    const getElderlyAge =computed(()=>{
        return elderlyAgeList.value
    })
    return {elderlyAgeList,getElderlyAge}
})